package com.neihe.entity.dto.user;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;

@Data
public class CheckCodeDTO {

    /**
     * 邮箱
     */
    @NotNull(message = "邮箱不能为空")
    @Email(message = "邮箱格式错误")
    private String email;

    /**
     * 邮箱验证码
     */
    @NotNull(message = "邮箱验证码不能为空")
    @Length(min = 4, max = 4, message = "邮箱验证码格式错误")
    private String code;

}
